package cn.tedu.boyou.common.query;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

@Getter
@Setter
@ToString
public class QueryObject implements Serializable{
    private int currentPage = 1; //当前页
    private int pageSize = 5; //每页显示记录数

    private String keyword ;

    public String getKeyword(){
        if(keyword == null || "".equals(keyword.trim())){
            return null;
        }
        return keyword;
    }
}
